package com.example.java.demo.example;


import java.io.BufferedInputStream;
import java.math.BigInteger;
import java.util.*;

public class Main {

    /**
     * 输入
      2
      1 2
      112233445566778899 998877665544332211
     *
     * Case 1:
     * 1 + 2 = 3
     *
     * 输出
     * Case 2:
     * 112233445566778899 + 998877665544332211 = 1111111111111111110
     *
     *
     * @param args
     */

    public static void main(String[] args) {
        Scanner scanner = new Scanner(new BufferedInputStream(System.in));
        int num = scanner.nextInt();

        List<Map<String, String>> list = new ArrayList<>();
        for (int i = 0; i < num; i++) {
            BigInteger inputa = scanner.nextBigInteger();
            BigInteger inputb = scanner.nextBigInteger();

            Map<String, String> map = new HashMap<>();
            map.put("input", inputa + " + " + inputb + " = " + inputa.add(inputb));
            map.put("case", "Case " + (i + 1) + ":");
            list.add(map);
        }

        for (Map<String, String> map : list) {
            System.out.println(map.get("case"));
            System.out.println(map.get("input") + "\n");
        }

    }

}
